package org.xm.sk.vo.ob;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

@ApiModel(value = "UserInfo", description = "用户详细信息")
@Data
@EqualsAndHashCode(callSuper = false)
@NoArgsConstructor
@AllArgsConstructor
public class UserInfo {
    
    @ApiModelProperty(value = "用户ID")
    Integer id;
    
    @ApiModelProperty(value = "头像图片ID")
    Integer imageId;
    
    @ApiModelProperty(value = "用户名")
    String username;
    
    @ApiModelProperty(value = "用户伲名")
    String nickname;
    
    @ApiModelProperty(value = "注册时间")
    Date registerTime;

    @ApiModelProperty(value = "所属机构ID")
    Integer organId;
    
    @ApiModelProperty(value = "所属机构名称")
    String organName;
    
    @ApiModelProperty(value = "借调机构名称")
    Map<Integer, String> allotName = new HashMap<Integer, String>(0);
    
    @ApiModelProperty(value = "角色别名")
    Map<Integer, String> roleAlias = new HashMap<Integer, String>(0);
    
    public UserInfo(Integer id, Integer imageId, String username,
            String nickname, Date registerTime) {
        this.id = id;
        this.imageId = imageId;
        this.username = username;
        this.nickname = nickname;
        this.registerTime = registerTime;
    }
    
}
